package com.lanou.service;

import com.lanou.dao.PostDaoImpl;

import com.lanou.domain.CrmPost;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by lanouhn on 17/9/29.
 */
@Transactional
public class PostServiceImpl implements PostService{


    @Resource(name = "postDao")
    PostDaoImpl postDao;

    //    根据部门，获取职务信息
    @Override
    public List<CrmPost> findPost(String depId) {
        System.out.println(depId);
        System.out.println("service.......");
        return postDao.findPost(depId);
    }

    public PostDaoImpl getPostDao() {
        return postDao;
    }

    public void setPostDao(PostDaoImpl postDao) {
        this.postDao = postDao;
    }
}
